exports.execQueryUrl = (l) => new URLSearchParams(l);
exports.contextPath = (loader, path) =>
  loader.utils.contextify(loader.context, path);
exports.obj2Query = (o) => {
  return Object.keys(o)
    .map((k) => {
      if (o[k] !== false) {
        return o[k] === true ? k : `${k}=${o[k]}`;
      }
    })
    .join("&");
};
